<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button id="send" type="button"></button>
</body>
<script src="jquery.min.js"></script>
<script>
    $("#send").on('click', function (e){
        $.post({
            url: "/user/login",
            data: {
                "username": "zjb",
                "password": "zjb",
            },
            success: function(data){
                console.log(data);
            }
        })
    })
</script>
</html>